home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Games / General / Geography Challenge / background_2626.xml next >
Extensible Markup Language  |  1994-03-01  |  22KB  |  494 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2626</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3274.css" />
  10.     <part>
  11.         <id>1</id>
  12.         <type>field</type>
  13.         <visible> <false /> </visible>
  14.         <dontWrap> <false /> </dontWrap>
  15.         <dontSearch> <false /> </dontSearch>
  16.         <sharedText> <false /> </sharedText>
  17.         <fixedLineHeight> <false /> </fixedLineHeight>
  18.         <autoTab> <false /> </autoTab>
  19.         <lockText> <false /> </lockText>
  20.         <rect>
  21.             <left>0</left>
  22.             <top>0</top>
  23.             <right>28</right>
  24.             <bottom>143</bottom>
  25.         </rect>
  26.         <style>rectangle</style>
  27.         <autoSelect> <false /> </autoSelect>
  28.         <showLines> <false /> </showLines>
  29.         <wideMargins> <false /> </wideMargins>
  30.         <multipleLines> <false /> </multipleLines>
  31.         <reservedFamily> 0 </reservedFamily>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>0</icon>
  34.         <textAlign>center</textAlign>
  35.         <font>Chicago</font>
  36.         <textSize>12</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <textHeight>16</textHeight>
  39.         <name>Number</name>
  40.         <script></script>
  41.     </part>
  42.     <part>
  43.         <id>2</id>
  44.         <type>field</type>
  45.         <visible> <false /> </visible>
  46.         <dontWrap> <false /> </dontWrap>
  47.         <dontSearch> <false /> </dontSearch>
  48.         <sharedText> <false /> </sharedText>
  49.         <fixedLineHeight> <false /> </fixedLineHeight>
  50.         <autoTab> <false /> </autoTab>
  51.         <lockText> <false /> </lockText>
  52.         <rect>
  53.             <left>30</left>
  54.             <top>0</top>
  55.             <right>130</right>
  56.             <bottom>141</bottom>
  57.         </rect>
  58.         <style>scrolling</style>
  59.         <autoSelect> <false /> </autoSelect>
  60.         <showLines> <false /> </showLines>
  61.         <wideMargins> <false /> </wideMargins>
  62.         <multipleLines> <false /> </multipleLines>
  63.         <reservedFamily> 0 </reservedFamily>
  64.         <titleWidth>0</titleWidth>
  65.         <icon>0</icon>
  66.         <textAlign>left</textAlign>
  67.         <font>Geneva</font>
  68.         <textSize>9</textSize>
  69.         <textStyle>plain</textStyle>
  70.         <textHeight>12</textHeight>
  71.         <name>Continent</name>
  72.         <script></script>
  73.     </part>
  74.     <part>
  75.         <id>3</id>
  76.         <type>field</type>
  77.         <visible> <false /> </visible>
  78.         <dontWrap> <false /> </dontWrap>
  79.         <dontSearch> <false /> </dontSearch>
  80.         <sharedText> <false /> </sharedText>
  81.         <fixedLineHeight> <false /> </fixedLineHeight>
  82.         <autoTab> <false /> </autoTab>
  83.         <lockText> <false /> </lockText>
  84.         <rect>
  85.             <left>133</left>
  86.             <top>0</top>
  87.             <right>235</right>
  88.             <bottom>142</bottom>
  89.         </rect>
  90.         <style>scrolling</style>
  91.         <autoSelect> <false /> </autoSelect>
  92.         <showLines> <false /> </showLines>
  93.         <wideMargins> <false /> </wideMargins>
  94.         <multipleLines> <false /> </multipleLines>
  95.         <reservedFamily> 0 </reservedFamily>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>0</icon>
  98.         <textAlign>left</textAlign>
  99.         <font>Geneva</font>
  100.         <textSize>9</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <textHeight>12</textHeight>
  103.         <name>Country</name>
  104.         <script></script>
  105.     </part>
  106.     <part>
  107.         <id>4</id>
  108.         <type>field</type>
  109.         <visible> <false /> </visible>
  110.         <dontWrap> <false /> </dontWrap>
  111.         <dontSearch> <false /> </dontSearch>
  112.         <sharedText> <false /> </sharedText>
  113.         <fixedLineHeight> <false /> </fixedLineHeight>
  114.         <autoTab> <false /> </autoTab>
  115.         <lockText> <false /> </lockText>
  116.         <rect>
  117.             <left>235</left>
  118.             <top>0</top>
  119.             <right>342</right>
  120.             <bottom>140</bottom>
  121.         </rect>
  122.         <style>scrolling</style>
  123.         <autoSelect> <false /> </autoSelect>
  124.         <showLines> <false /> </showLines>
  125.         <wideMargins> <false /> </wideMargins>
  126.         <multipleLines> <false /> </multipleLines>
  127.         <reservedFamily> 0 </reservedFamily>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>0</icon>
  130.         <textAlign>left</textAlign>
  131.         <font>Geneva</font>
  132.         <textSize>9</textSize>
  133.         <textStyle>plain</textStyle>
  134.         <textHeight>12</textHeight>
  135.         <name>capital</name>
  136.         <script></script>
  137.     </part>
  138.     <part>
  139.         <id>5</id>
  140.         <type>field</type>
  141.         <visible> <false /> </visible>
  142.         <dontWrap> <false /> </dontWrap>
  143.         <dontSearch> <false /> </dontSearch>
  144.         <sharedText> <false /> </sharedText>
  145.         <fixedLineHeight> <false /> </fixedLineHeight>
  146.         <autoTab> <false /> </autoTab>
  147.         <lockText> <false /> </lockText>
  148.         <rect>
  149.             <left>343</left>
  150.             <top>0</top>
  151.             <right>443</right>
  152.             <bottom>141</bottom>
  153.         </rect>
  154.         <style>scrolling</style>
  155.         <autoSelect> <false /> </autoSelect>
  156.         <showLines> <false /> </showLines>
  157.         <wideMargins> <false /> </wideMargins>
  158.         <multipleLines> <false /> </multipleLines>
  159.         <reservedFamily> 0 </reservedFamily>
  160.         <titleWidth>0</titleWidth>
  161.         <icon>0</icon>
  162.         <textAlign>left</textAlign>
  163.         <font>Geneva</font>
  164.         <textSize>9</textSize>
  165.         <textStyle>plain</textStyle>
  166.         <textHeight>12</textHeight>
  167.         <name>BigCity</name>
  168.         <script></script>
  169.     </part>
  170.     <part>
  171.         <id>6</id>
  172.         <type>field</type>
  173.         <visible> <false /> </visible>
  174.         <dontWrap> <false /> </dontWrap>
  175.         <dontSearch> <false /> </dontSearch>
  176.         <sharedText> <false /> </sharedText>
  177.         <fixedLineHeight> <false /> </fixedLineHeight>
  178.         <autoTab> <false /> </autoTab>
  179.         <lockText> <false /> </lockText>
  180.         <rect>
  181.             <left>208</left>
  182.             <top>1</top>
  183.             <right>447</right>
  184.             <bottom>144</bottom>
  185.         </rect>
  186.         <style>scrolling</style>
  187.         <autoSelect> <false /> </autoSelect>
  188.         <showLines> <false /> </showLines>
  189.         <wideMargins> <false /> </wideMargins>
  190.         <multipleLines> <false /> </multipleLines>
  191.         <reservedFamily> 0 </reservedFamily>
  192.         <titleWidth>0</titleWidth>
  193.         <icon>0</icon>
  194.         <textAlign>left</textAlign>
  195.         <font>Palatino</font>
  196.         <textSize>12</textSize>
  197.         <textStyle>plain</textStyle>
  198.         <textHeight>16</textHeight>
  199.         <name>HighScores</name>
  200.         <script></script>
  201.     </part>
  202.     <part>
  203.         <id>7</id>
  204.         <type>field</type>
  205.         <visible> <true /> </visible>
  206.         <dontWrap> <false /> </dontWrap>
  207.         <dontSearch> <false /> </dontSearch>
  208.         <sharedText> <true /> </sharedText>
  209.         <fixedLineHeight> <false /> </fixedLineHeight>
  210.         <autoTab> <false /> </autoTab>
  211.         <lockText> <false /> </lockText>
  212.         <rect>
  213.             <left>1413</left>
  214.             <top>1489</top>
  215.             <right>1587</right>
  216.             <bottom>1511</bottom>
  217.         </rect>
  218.         <style>rectangle</style>
  219.         <autoSelect> <false /> </autoSelect>
  220.         <showLines> <false /> </showLines>
  221.         <wideMargins> <false /> </wideMargins>
  222.         <multipleLines> <false /> </multipleLines>
  223.         <reservedFamily> 0 </reservedFamily>
  224.         <titleWidth>0</titleWidth>
  225.         <icon>0</icon>
  226.         <textAlign>left</textAlign>
  227.         <font>Palatino</font>
  228.         <textSize>12</textSize>
  229.         <textStyle>plain</textStyle>
  230.         <textHeight>16</textHeight>
  231.         <name>defaults</name>
  232.         <script></script>
  233.     </part>
  234.     <part>
  235.         <id>8</id>
  236.         <type>button</type>
  237.         <visible> <true /> </visible>
  238.         <reserved5> 0 </reserved5>
  239.         <reserved4> 0 </reserved4>
  240.         <reserved3> 0 </reserved3>
  241.         <reserved2> 0 </reserved2>
  242.         <reserved1> 0 </reserved1>
  243.         <enabled> <true /> </enabled>
  244.         <rect>
  245.             <left>5</left>
  246.             <top>159</top>
  247.             <right>102</right>
  248.             <bottom>179</bottom>
  249.         </rect>
  250.         <style>shadow</style>
  251.         <showName> <true /> </showName>
  252.         <highlight> <true /> </highlight>
  253.         <autoHighlight> <false /> </autoHighlight>
  254.         <sharedHighlight> <true /> </sharedHighlight>
  255.         <family>0</family>
  256.         <titleWidth>0</titleWidth>
  257.         <icon>0</icon>
  258.         <textAlign>center</textAlign>
  259.         <font>Chicago</font>
  260.         <textSize>12</textSize>
  261.         <textStyle>plain</textStyle>
  262.         <name>Player 1</name>
  263.         <script>on mouseUpend mouseUp</script>
  264.     </part>
  265.     <part>
  266.         <id>9</id>
  267.         <type>button</type>
  268.         <visible> <true /> </visible>
  269.         <reserved5> 0 </reserved5>
  270.         <reserved4> 0 </reserved4>
  271.         <reserved3> 0 </reserved3>
  272.         <reserved2> 0 </reserved2>
  273.         <reserved1> 0 </reserved1>
  274.         <enabled> <true /> </enabled>
  275.         <rect>
  276.             <left>115</left>
  277.             <top>159</top>
  278.             <right>212</right>
  279.             <bottom>179</bottom>
  280.         </rect>
  281.         <style>shadow</style>
  282.         <showName> <true /> </showName>
  283.         <highlight> <false /> </highlight>
  284.         <autoHighlight> <false /> </autoHighlight>
  285.         <sharedHighlight> <true /> </sharedHighlight>
  286.         <family>0</family>
  287.         <titleWidth>0</titleWidth>
  288.         <icon>0</icon>
  289.         <textAlign>center</textAlign>
  290.         <font>Chicago</font>
  291.         <textSize>12</textSize>
  292.         <textStyle>plain</textStyle>
  293.         <name>Player 2</name>
  294.         <script>on mouseUpend mouseUp</script>
  295.     </part>
  296.     <part>
  297.         <id>10</id>
  298.         <type>button</type>
  299.         <visible> <false /> </visible>
  300.         <reserved5> 0 </reserved5>
  301.         <reserved4> 0 </reserved4>
  302.         <reserved3> 0 </reserved3>
  303.         <reserved2> 0 </reserved2>
  304.         <reserved1> 0 </reserved1>
  305.         <enabled> <true /> </enabled>
  306.         <rect>
  307.             <left>223</left>
  308.             <top>159</top>
  309.             <right>320</right>
  310.             <bottom>179</bottom>
  311.         </rect>
  312.         <style>shadow</style>
  313.         <showName> <true /> </showName>
  314.         <highlight> <false /> </highlight>
  315.         <autoHighlight> <false /> </autoHighlight>
  316.         <sharedHighlight> <true /> </sharedHighlight>
  317.         <family>0</family>
  318.         <titleWidth>0</titleWidth>
  319.         <icon>0</icon>
  320.         <textAlign>center</textAlign>
  321.         <font>Chicago</font>
  322.         <textSize>12</textSize>
  323.         <textStyle>plain</textStyle>
  324.         <name>Player 3</name>
  325.         <script>on mouseUpend mouseUp</script>
  326.     </part>
  327.     <part>
  328.         <id>11</id>
  329.         <type>button</type>
  330.         <visible> <false /> </visible>
  331.         <reserved5> 0 </reserved5>
  332.         <reserved4> 0 </reserved4>
  333.         <reserved3> 0 </reserved3>
  334.         <reserved2> 0 </reserved2>
  335.         <reserved1> 0 </reserved1>
  336.         <enabled> <true /> </enabled>
  337.         <rect>
  338.             <left>332</left>
  339.             <top>159</top>
  340.             <right>429</right>
  341.             <bottom>179</bottom>
  342.         </rect>
  343.         <style>shadow</style>
  344.         <showName> <true /> </showName>
  345.         <highlight> <false /> </highlight>
  346.         <autoHighlight> <false /> </autoHighlight>
  347.         <sharedHighlight> <true /> </sharedHighlight>
  348.         <family>0</family>
  349.         <titleWidth>0</titleWidth>
  350.         <icon>0</icon>
  351.         <textAlign>center</textAlign>
  352.         <font>Chicago</font>
  353.         <textSize>12</textSize>
  354.         <textStyle>plain</textStyle>
  355.         <name>Player 4</name>
  356.         <script>on mouseUpend mouseUp</script>
  357.     </part>
  358.     <part>
  359.         <id>12</id>
  360.         <type>field</type>
  361.         <visible> <true /> </visible>
  362.         <dontWrap> <false /> </dontWrap>
  363.         <dontSearch> <false /> </dontSearch>
  364.         <sharedText> <false /> </sharedText>
  365.         <fixedLineHeight> <false /> </fixedLineHeight>
  366.         <autoTab> <false /> </autoTab>
  367.         <lockText> <true /> </lockText>
  368.         <rect>
  369.             <left>5</left>
  370.             <top>183</top>
  371.             <right>102</right>
  372.             <bottom>204</bottom>
  373.         </rect>
  374.         <style>shadow</style>
  375.         <autoSelect> <false /> </autoSelect>
  376.         <showLines> <false /> </showLines>
  377.         <wideMargins> <false /> </wideMargins>
  378.         <multipleLines> <false /> </multipleLines>
  379.         <reservedFamily> 0 </reservedFamily>
  380.         <titleWidth>0</titleWidth>
  381.         <icon>0</icon>
  382.         <textAlign>center</textAlign>
  383.         <font>Chicago</font>
  384.         <textSize>12</textSize>
  385.         <textStyle>plain</textStyle>
  386.         <textHeight>16</textHeight>
  387.         <name>Score1</name>
  388.         <script>on mouseDownend mouseDown</script>
  389.     </part>
  390.     <part>
  391.         <id>13</id>
  392.         <type>field</type>
  393.         <visible> <true /> </visible>
  394.         <dontWrap> <false /> </dontWrap>
  395.         <dontSearch> <false /> </dontSearch>
  396.         <sharedText> <false /> </sharedText>
  397.         <fixedLineHeight> <false /> </fixedLineHeight>
  398.         <autoTab> <false /> </autoTab>
  399.         <lockText> <true /> </lockText>
  400.         <rect>
  401.             <left>115</left>
  402.             <top>183</top>
  403.             <right>212</right>
  404.             <bottom>204</bottom>
  405.         </rect>
  406.         <style>shadow</style>
  407.         <autoSelect> <false /> </autoSelect>
  408.         <showLines> <false /> </showLines>
  409.         <wideMargins> <false /> </wideMargins>
  410.         <multipleLines> <false /> </multipleLines>
  411.         <reservedFamily> 0 </reservedFamily>
  412.         <titleWidth>0</titleWidth>
  413.         <icon>0</icon>
  414.         <textAlign>center</textAlign>
  415.         <font>Chicago</font>
  416.         <textSize>12</textSize>
  417.         <textStyle>plain</textStyle>
  418.         <textHeight>16</textHeight>
  419.         <name>Score2</name>
  420.         <script>on mouseDownend mouseDown</script>
  421.     </part>
  422.     <part>
  423.         <id>14</id>
  424.         <type>field</type>
  425.         <visible> <false /> </visible>
  426.         <dontWrap> <false /> </dontWrap>
  427.         <dontSearch> <false /> </dontSearch>
  428.         <sharedText> <false /> </sharedText>
  429.         <fixedLineHeight> <false /> </fixedLineHeight>
  430.         <autoTab> <false /> </autoTab>
  431.         <lockText> <true /> </lockText>
  432.         <rect>
  433.             <left>223</left>
  434.             <top>183</top>
  435.             <right>320</right>
  436.             <bottom>204</bottom>
  437.         </rect>
  438.         <style>shadow</style>
  439.         <autoSelect> <false /> </autoSelect>
  440.         <showLines> <false /> </showLines>
  441.         <wideMargins> <false /> </wideMargins>
  442.         <multipleLines> <false /> </multipleLines>
  443.         <reservedFamily> 0 </reservedFamily>
  444.         <titleWidth>0</titleWidth>
  445.         <icon>0</icon>
  446.         <textAlign>center</textAlign>
  447.         <font>Chicago</font>
  448.         <textSize>12</textSize>
  449.         <textStyle>plain</textStyle>
  450.         <textHeight>16</textHeight>
  451.         <name>Score3</name>
  452.         <script>on mouseDownend mouseDown</script>
  453.     </part>
  454.     <part>
  455.         <id>15</id>
  456.         <type>field</type>
  457.         <visible> <false /> </visible>
  458.         <dontWrap> <false /> </dontWrap>
  459.         <dontSearch> <false /> </dontSearch>
  460.         <sharedText> <false /> </sharedText>
  461.         <fixedLineHeight> <false /> </fixedLineHeight>
  462.         <autoTab> <false /> </autoTab>
  463.         <lockText> <true /> </lockText>
  464.         <rect>
  465.             <left>332</left>
  466.             <top>183</top>
  467.             <right>429</right>
  468.             <bottom>204</bottom>
  469.         </rect>
  470.         <style>shadow</style>
  471.         <autoSelect> <false /> </autoSelect>
  472.         <showLines> <false /> </showLines>
  473.         <wideMargins> <false /> </wideMargins>
  474.         <multipleLines> <false /> </multipleLines>
  475.         <reservedFamily> 0 </reservedFamily>
  476.         <titleWidth>0</titleWidth>
  477.         <icon>0</icon>
  478.         <textAlign>center</textAlign>
  479.         <font>Chicago</font>
  480.         <textSize>12</textSize>
  481.         <textStyle>plain</textStyle>
  482.         <textHeight>16</textHeight>
  483.         <name>Score4</name>
  484.         <script>on mouseDownend mouseDown</script>
  485.     </part>
  486.     <content>
  487.         <layer>background</layer>
  488.         <id>7</id>
  489.         <text>2,capitals,2,</text>
  490.     </content>
  491.     <name></name>
  492.     <script>on testrandomset cursor to busyput 0 into cntrput 0 into rightrepeat 100000put random(4) into nwNumif nwNum is 2 then add 1 to rightadd 1 to cntrput 100*cntr div 100000 &" percent done."end repeatput right/cntr&&"(expected is 0.25)play boingend testrandomon dohelplock screengo to cd 1show btn closebox of cd 1show btn helpbar of cd 1show cd fld help of cd 1set scroll of cd fld help of cd 1 to 0unlock screen with dissolveend doHelpon doquiz whatglobal counter,right,wrong,total,quiz-- if (hilite of the target is not true) and ((right+wrong)>100) then-- doHighScore-- end ifput what into quizput "capitals quiz,countries quiz,cities quiz" into bnsset cursor to busyput number of lines in fld number into totalput 1 into counterput 0 into rightput 0 into wronglock screenrepeat with x = 1 to 3if quiz = word 1 of item x of bns thenput word 1 of item x of bns into quizput quiz into item 2 of fld "defaults"set hilite of btn item x of bns to trueset the checkmark of menuitem item x of bns of menu "Quiz" to trueelseset hilite of btn item x of bns to falseset the checkmark of menuitem item x of bns of menu "Quiz" to falseend ifend repeatunlock screen with dissolve fastnextQuestion quizend doQuizon doHighScoreglobal right,wrongif word 3 of cd fld score > 100 thenask "Enter your first name:" with item 1 of line 1 of fld HighScoresput it into newPlayerput false into recordExistsrepeat with x=1 to number of lines in fld HighScoresif item 1 of line x of fld HighScores is newPlayer thenput x into whLineput true into recordExistsexit repeatend ifend repeatput item 2 of line whLine of fld HighScores into prevRightput item 3 of line whLine of fld HighScores into prevWrongput trunc(prevRight*100/(prevRight+prevWrong)) into prevPercput trunc(Right*100/(Right+Wrong)) into newPercif prevPerc < newPerc thenput right into item 2 of line whLine of fld HighScoresput wrong into item 3 of line whLine of fld HighScoresanswer "Congratulations! You answered "&newPerc&" percent "&¬¨"correctly which is "&newPerc-prevPerc&" percent better "&¬¨"than your last best score." with "Cool!"else if prevPerc = newPerc thenanswer "Way to go! You equalled your previous top score "&¬¨"of "&newPerc&" percent." with "Whew!"elseanswer "Pretty good, but you only answered "&newPerc &¬¨"percent correctly which is "&prevPerc-newPerc&" percent "&¬¨"less than your all-time top score." with "Oh Well!"end ifelseput return&newPlayer&","&right&","&wrong after fld highscoresput trunc(Right*100/(Right+Wrong)) into newPercanswer "Your answered "&newPerc&" percent correctly and "&¬¨"this value has been stored on the High Scores list." with¬¨"Cool!"end ifend doHighScoreon nextQuestion whichglobal right,wrong,counter,total,lastpicked,newRight,guesses,whRegion,wrglobal theNumbers,theContinents,theCountries,theCapitals,theBigCitieslock screenput "" into guessesset hilite of btn "correct" to falseset hilite of btn id 7 to falseset cursor to busyif whRegion is "" then put true into whRegionif total < 3 then exit nextQuestionrepeatput random(total) into nextNum-- if (which is "cities") and (line nextNum of theBigCities = "") then-- next repeat-- end ifif whRegion thenif line nextNum of theContinents is not in wr then next repeatend ifif nextNum is not lastpicked then exit repeatend repeatput nextNum into lastpickedput line nextNum of theNumbers into newNumberput line nextNum of theCountries into newCountryput line nextNum of theCapitals into newCapitalput line nextNum of theBigCities into newBigCityif which is "capitals" thenput "What is the capital of "&newCountry&"?" into cd fld questionelse if which is "countries" thenput newCapital&" is the capital of what country?" into cd fld questionelseput newBigCity&" is a city in what country?" into cd fld questionend ifput random(3) into NRput "answer"&NR into newRightif newRight = "answer1" thenput "answer2" into wrong1put "answer3" into wrong2else if newRight = "answer2" thenput "answer1" into wrong1put "answer3" into wrong2elseput "answer1" into wrong1put "answer2" into wrong2end ifrepeatput random(total) into wr1if (not whRegion) or (line wr1 of theContinents is in wr) thenif nextNum = wr1 then next repeatexit repeatend ifend repeatrepeatput random(total) into wr2if (not whRegion) or (line wr2 of theContinents is in wr) thenif (nextNum = wr2) or (wr1 = wr2) then next repeatexit repeatend ifend repeatif which is "capitals" thenput newCapital into cd fld newRightput line wr1 of theCapitals into cd fld wrong1put line wr2 of theCapitals into cd fld wrong2elseput newCountry into cd fld newRightput line wr1 of theCountries into cd fld wrong1put line wr2 of theCountries into cd fld wrong2end ifput right&&"of"&&(right+wrong) into cd fld scoreunlock screen with dissolveend nextQuestionon doTestglobal newRight,right,wrong,counter,guesses,quiz,thePlayer,numPlayersput the short name of the target into newName-- lock screenif newName is not in guesses thenput newName&"," after guessesif newName is newRight thenset hilite of btn "correct" to trueset hilite of btn id 7 to falseadd 1 to rightput "Score"&thePlayer into fnmadd 1 to fld fnmput true into doNextwait 30set hilite of btn "correct" to falseelseset hilite of btn id 7 to trueset hilite of btn "correct" to falseput false into doNextadd 1 to wrongput "Player "&thePlayer into bnmset hilite of bg btn bnm to falseif thePlayer is numPlayers thenif numplayers = 1 thenput "0" into fld "score1"elseput 1 into thePlayerend ifelseadd 1 to thePlayerend ifput "Player "&thePlayer into bnmset hilite of bg btn bnm to trueend ifadd 1 to counterput right&&"of"&&(right+wrong) into cd fld scoreif doNext thennextQuestion quizend ifelsebeepend ifend doTeston EditFldslock screenif the visible of fld number is false thenshow fld numbershow fld continentshow fld countryshow fld capitalshow fld bigcityhide cd fld questionhide cd fld answer1hide cd fld answer2hide cd fld answer3hide cd fld scorehide btn "correct"hide btn id 7hide btn "capitals quiz"hide btn "countries quiz"hide btn "cities quiz"elsehide fld numberhide fld continenthide fld countryhide fld capitalhide fld bigcityshow cd fld questionshow cd fld answer1show cd fld answer2show cd fld answer3show cd fld scoreshow btn "correct"show btn id 7show btn "capitals quiz"show btn "countries quiz"show btn "cities quiz"end ifunlock screen with dissolveend EditFldson doImportglobal totalanswer "Would you like to save a copy of the current stack "&¬¨"before replacing all the data?" with "No" or "Yes"if it is "yes" then domenu "Save a Copy..."answer file "Where is the geography data file?" of type "TEXT"if the result is "cancel" then exit to hypercardput it into fnset cursor to busyopen file fnread from file fn until eofput it into inputclose file fnput "" into fld numberput "" into  fld continentput "" into  fld countryput "" into  fld capitalput "" into  fld bigcityrepeat with x=1 to number of lines in inputput item 1 of line x of input into line x of fld numberput item 2 of line x of input into line x of fld continentput item 3 of line x of input into line x of fld countryput item 4 of line x of input into line x of fld capitalput item 5 of line x of input into line x of fld bigcityend repeatput number of lines in fld number into totalend doImporton doExportask file "Save geographic data as‚Ķ" with "GeoData.txt"&&the short dateif the result is "cancel" then exit to hypercardput it into fnset cursor to busyput "" into outputrepeat with x=1 to number of lines in fld numberput line x of fld number &","&¬¨line x of fld continent &","&¬¨line x of fld country &","&¬¨line x of fld capital &","&¬¨line x of fld bigcity&return after outputend repeatopen file fnwrite output to file fnclose file fnend doExport</script>
  493. </background>
  494.